<?php
/**
 * Created by litong on Date: 2018/12/22 0022 下午 8:19
 */
namespace MyProject{
  const CONNECT_OK=1;
  class Connection{/**/}
  function connect(){/**/}
}
namespace {
  // 全局代码
  session_start();
  $a=MyProject\connect();
  echo MyProject\Connection::start();
}
?>